
 import request from '@/utils/request';

/**
 *  // 同步oss文件
 */
export async function syncOssFile(data) {
    const res = await request.post('/SyncOssFile', data);
    if (res.status === 0) {
      return res;
    }
    return Promise.reject(new Error(res.message));
  }
export async function vipConfig(data) {
    const res = await request.post('/VipConfig', data);
    if (res.status === 0) {
      return res;
    }
    return Promise.reject(new Error(res.message));
  }
export async function baseConfig(data) {
    const res = await request.post('/GetBaseConfig',data);
    if (res.status === 0) {
      return res;
    }
    return Promise.reject(new Error(res.message));
  }
export async function getModule(data) {
    const res = await request.post('/GetModule',data);
    if (res.status === 0) {
      return res;
    }
    return Promise.reject(new Error(res.message));
  }
export async function setModule(data) {
    const res = await request.post('/SetModule',data);
    if (res.status === 0) {
      return res;
    }
    return Promise.reject(new Error(res.message));
  }
export async function setBaseConfig(data) {
    const res = await request.post('/SetBaseConfig', data);
    if (res.status === 0) {
      return res;
    }
    return Promise.reject(new Error(res.message));
  }